package week6;

class Circle {
    private double radius;
    private final double PI=3.14;
    public Circle(double radius){
        this.radius=radius;
    }
    public double getArea(){
        return PI * radius * radius;
    }
}
public class TestCircle{
    public static void main(String[] args){
        Circle circle = new Circle(5.0);
        System.out.println("圆的面积为："+circle.getArea());
    }
}
